﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Net_SCADA.Forms
{
    public partial class Form_AlarmHelp : fdBaseForm
    {
        Alarm alarm;
        string alHelpFile;
        public Form_AlarmHelp(Alarm al,string helpFile)
        {
            InitializeComponent();
            alarm = al;
            alHelpFile = helpFile;  
        }

        private void Form_AlarmHelp_Load(object sender, EventArgs e)
        {
            this.Size = new Size(netForms.fmAlarm.Width / 2, netForms.fmAlarm.Height * 2 / 3);
            rtb_AlarmHelp.LoadFile(alHelpFile);
            lbl_AlarmHelpTitle.Text = alarm.AlarmName[MultipleLanguage.systemLanguageIndex];
        }

        private void btn_AlarmHelpClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
